package com.usian.pojo.error;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@TableName("error")
public class Error implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("sid")
    private Integer sid;

    @TableField("errorReason")
    private String errorReason;

    @TableField("createTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getErrorReason() {
        return errorReason;
    }

    public void setErrorReason(String errorReason) {
        this.errorReason = errorReason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Error() {
    }

    public Error(Integer sid, String errorReason, Date createTime) {
        this.sid = sid;
        this.errorReason = errorReason;
        this.createTime = createTime;
    }
}
